package com.song.service;

import com.song.model.Adress;
import com.song.model.Order;
import com.sun.corba.se.spi.orb.ParserImplBase;

import java.security.PublicKey;

/**
 * @ClassName : ShopService
 * @Author : 司猫子
 * @Date: 2021/2/26 15:10
 */
public class ShopService {
    private OrderService orderService;
    //private UserService userService;

    public void setOrderService(OrderService orderService) {
        this.orderService = orderService;
    }

    /*public void setUserService(UserService userService) {
        this.userService = userService;
    }*/
    public Order makeNewOrder(Integer userId,String goodsName,Float price,Integer amount){
        Order order = orderService.createOrder(userId, goodsName, price, amount);
        return order;
    }
  /*  public Adress queryAdress(Integer userid){
        Adress adress = userService.queryAddress(userid);
        return adress;
    }*/
}
